//
//  UIViewController+LLT_LoginAndRegist_LXM.h
//  CoderLLT
//
//  Created by 刘晓萌 on 15/12/23.
//  Copyright © 2015年 刘晓萌. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (LLT_LoginAndRegist_LXM)

#pragma mark --- 设置背景图滚动方法
-(void)changBackImageAction:(UIScrollView *)scrollView andFlag:(BOOL)flag;

#pragma mark --- Alert提示方法
/**
 * 添加简单allert提示
 */
-(void)showAlert:(NSString *)alertTitle andAlertString:(NSString *)alertContent;

/**
 * 添加复杂点儿allert提示
 */
-(void)showAlert:(NSString *)alertTitle andAlertString:(NSString *)alertContent andHandler:(void (^ __nullable)(UIAlertAction *action))handler;

#pragma mark --- 判断是否符合电话号码规范

/**
 *  判断是否符合电话号码规范
 *
 *  @param phoneNum 电话号码
 *
 *  @return 布尔值
 */
-(BOOL)authenticatePhoneNum:(NSString *)phoneNum;

#pragma mark --- 密码MD5加密
-(NSString *)md5StrWithString:(NSString *)string;
#pragma mark --- 判断是否登陆/或是以游客登陆
/**
 * 判断是否登陆/或是以游客登陆
 */
-(BOOL)isonLine;
@end
